<template>
  <div>
    <el-form :inline="true">
      <el-form-item>
        <el-input placeholder="关键字"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button>查询</el-button>
      </el-form-item>
      <el-form-item>
        <el-button>新增</el-button>
      </el-form-item>
    </el-form>

    <el-table
      border
      stripe
      :data="dataNodeList">
      <el-table-column sortable prop="id" label="id"/>
      <el-table-column sortable prop="name" label="name"/>
      <el-table-column sortable prop="url" label="url"/>
      <el-table-column sortable prop="username" label="username"/>
      <el-table-column sortable prop="password" label="password"/>
      <el-table-column sortable prop="description" label="description"/>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <a :href="'#/DataNodeEdit?id=' + scope.id">修改</a>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data(){
    return {
      dataNodeList : []
    };
  },

  mounted() {
    var _this = this;
    sdk.DataNodeApi().list().then(resp=>{
      _this.dataNodeList = resp.list;
    });
  }
}
</script>